a = str(input("请输入单词1为"))
b = str(input("请输入单词2为"))
c = str(input("请输入单词3为"))
if a>b:
    d = b
    e = a
else:
    d = a
    e = b
if c>e:
    f = c
elif c<d:
    f = e
    e = d
    d = c
else:
    f = e
    e = c
print(d, e, f, sep=",")


